<?php
require_once 'base_model.php';
class Category extends Base_model
{
	
	function __construct()
	{
		parent::__construct();
		
		$this->tablename='tbcategory';
		$this->load->database();
	}
	function load_all()
	{
		$arr=array();
		
		$query=$this->db->get($this->tablename);
		$array=$query->result();
		foreach ($array as $value)
		{
			$arr[$value->category_id]=$value->name;
			
		}
	
		return $arr;
	}
	
}
?>